/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.manyeli.designpatterns.creational.abstractFactory;

import za.ac.cput.manyeli.designpatterns.creational.Animal;
import za.ac.cput.manyeli.designpatterns.creational.Cat;

/**
 *
 * @author 209150351
 */
public class MammaFactory extends SpeciesFactory {

    @Override
    public Animal getAnimal(String type) {
        if ("dog".equals(type)){
            returns new Dog();
        } else {
            return new Cat();
        }
    }
}
